<?php
namespace app\modules\backend\controllers;

use app\models\LoginForm;
use yii\helpers\Url;
use yii\web\Controller;
/**
 * Created by PhpStorm.
 * User: jichao
 * Date: 2015/12/8
 * Time: 22:11
 */

class SiteController extends  Controller{


    public function actionUser()
    {
        return $this->render('user');
    }
    public function actionIndex()
    {
        return $this->render('index');
    }
    public function actionLogout()
    {
        \Yii::$app->user->logout();
       // return $this->render('/site/login',['model'=>$model]);
        return $this->redirect(Url::toRoute('/site/login'));
    }
}